#include "Common.h"
#include "InGameMainWindow.h"
#include "InGameMenu.h"
#include "InputManager.h"

InGameMainWindow::InGameMainWindow(void)
{
}

InGameMainWindow::~InGameMainWindow(void)
{
}

bool InGameMainWindow::OnOpen()
{
	return true;
}

void InGameMainWindow::OnDestory()
{
}

void InGameMainWindow::OnInGameMenu()
{
	if (InGameMenu::Exist())
	{
		InGameMenu::Instance().Close();
		InputManager::Instance().setImmediateMode(true);
	}
	else
	{
		InGameMenu::Instance().Open();
		InputManager::Instance().setImmediateMode(false);
	}
}